<?php

if (isset($_COOKIE["agent_name"]))
    $agent_name= $_COOKIE["agent_name"];
else{
    echo "<script type=text/javascript>window.location.href='agent_login.php';</script>";
}
echo <<<END

<header>
    <nav>
    <div>
     <img src="../public/image/img/logo.png" />
        
    </div>
    
      <div style="float:right;">
      <span>
          welcome  $agent_name
        </span>
      </div>
    </nav>
</header>
<style>

</style>
END;
